
<div id="main-content" class="prepend-1 span-19 last">
	<h3>Ubah Pengumuman</h3>
<?php 
	if ($editstatus == 'failed') {
		echo '<span class="error">Pengumuman gagal diedit. Silakan coba beberapa saat lagi.</span>';
	} else {
		$title = set_value('title', $announcement->title);
		$content = set_value('content', $announcement->content);
	}
?>
<?php echo form_open($role.'/home/edit/'.$announcement->id, array('class' => 'form')); ?>
		<label>Judul <?php echo form_error('title'); ?></label><br />
		<input type="text" name="title" value="<?php echo $title; ?>" 
			class="title" maxlength="256" style="width: 700px!important" />
		<div class="clear"><?php echo nbs(); ?></div>
		<label>Isi <?php echo form_error('content'); ?></label><br />
		<textarea rows="" cols="" name="content" class="textedit"><?php echo $content; ?></textarea>
		<div class="clear"><?php echo nbs(); ?></div>
		
		<input type="submit" value="Batal" name="confirm" class="submit" style="margin-left: 585px" />
		<input type="submit" value="Post" name="confirm" class="submit" />
<?php echo form_close(); ?>
	<div class="clear"><?php echo nbs(); ?></div>
</div>
